package org.nokatag.dbgrid;
/**
 * 查询列参数
 * @author rebin
 *
 */
public class CellParItem {
	
	private Integer type=null;//字段类型
	private Object value=null;//参数
	private Integer index=null;//序号
	private String cellname=null;//列名
	private String name = null;//属性名
	private Integer show = null;//显示
	
	public CellParItem(Integer type,String cellname,String name){
		setCellParItem(type,null,null,cellname,name);
	}
	
	public CellParItem(Integer type,String cellname){
		setCellParItem(type,null,null,cellname,null);
	}
	
	public CellParItem(Integer type,Object value,Integer index){
		setCellParItem(type,value,index,null,null);
	}
	
	public CellParItem(Integer type,Object value,Integer index,String cellname){
		setCellParItem(type,value,index,cellname,null);
	}
	
	private void setCellParItem(Integer type,Object value,Integer index,String cellname,String name){
		this.type = type;
		this.value = value;
		this.index=index;
		this.cellname=cellname;
		this.name = name;
	}
	
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	
	public Integer getIndex() {
		return index;
	}
	public void setIndex(Integer index) {
		this.index = index;
	}

	public String getCellname() {
		return cellname;
	}

	public void setCellname(String cellname) {
		this.cellname = cellname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getShow() {
		return show;
	}

	public void setShow(Integer show) {
		this.show = show;
	}
	

}
